package com.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.blog.bean.Blog;

/**
 * @className: IBlogDao
 * @description: 
 * @author: HCl
 * @createTime: 2020年5月26日 下午8:12:19
 */
@Repository

@Mapper
public interface IBlogDao {
	
	public Blog selectBlogById(Integer id);
	public List<Blog> findAllBlogs();
	public List<Blog> selectBlogByUserId(Integer userid);
	public List<Blog> selectBlogByTitle(String title,String hh);
	public List<Blog> selectBlogByType(String type);
	public List<Blog> selectBlogByTypeAndTitle(String type,String title);
	public int updateBlog(Blog blog);
	public int addBlog(Blog blog);
	public int addBlog2(Blog blog);
	public int deleteBlogById(Integer id);
	
	
	
	

}
